﻿using ImportPlcPointPosition.PLC;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZR.Model.Models.ProductionControl;

namespace ImportPlcPointPosition.Utils
{
    public class App
    {

        #region Props
        /// <summary>
        /// lock
        /// </summary>
        public static object LockClient => new object();

        /// <summary>
        /// 主窗体
        /// </summary>
        public static MainLayout MainLayout { get; set; }

        /// <summary>
        /// 当前PlcClient实例
        /// </summary>
        public static PlcClient CurrentPlcClient { get; set; }

        /// <summary>
        /// PlcConfig列表
        /// </summary>
        public static List<PlcConfig> PlcConfigList => SqlSugarHelper.MesDB.Queryable<PlcConfig>().ToList();

        #endregion


        #region Events

        #endregion
    }
}
